home *** CD-ROM | disk | FTP | other *** search
- /**********************************************************************\
-
- File: program globals.h
-
- Purpose: This is the header file for all the program-specific
- global variables, #defines, enums, and structs.
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program in a file named "GNU General Public License".
- If not, write to the Free Software Foundation, 675 Mass Ave,
- Cambridge, MA 02139, USA.
-
- \**********************************************************************/
-
- #ifndef _PROGRAM_GLOBALS_H_
- #define _PROGRAM_GLOBALS_H_
-
- #define CREATOR 'Kant'
- #define APPLICATION_NAME "\pKant Generator"
- #define SAVE_TYPE 'TEXT'
- #define SAVE_VERSION 1
-
- enum /* window indices in gTheWindowData[] lists */
- {
- kAboutWindow=0, /* about box */
- kAboutMSGWindow, /* "About MSG" splash screen */
- kHelpWindow, /* help window */
- kMainWindow /* main graphics window */
- };
-
- #define NUM_WINDOWS 4 /* total number of windows (see above enum) */
-
- enum ErrorTypes
- {
- allsWell=0,
-
- /* shell errors */
- kNoMemory,
- kNoMemoryAndQuitting,
- kProgramIntegrityNotVerified,
- kProgramIntegritySet,
- kSystemTooOld,
- userCancelErr,
-
- kCantCreateFile,
- kCantOpenFileToSave,
- kDiskFull,
- kCantWriteFile,
- kCantOpenFileToLoad,
- kCantLoadFile,
- kFileTooLarge
- };
-
- //#define NUM_FIND 4
-
- extern FSSpec saveFile;
- extern Boolean deleteTheThing;
-
- extern Boolean gAlwaysResolve;
- extern short gSpeedDelay;
- //extern Str255 gFindString[NUM_FIND];
- //extern Str255 gReplaceString[NUM_FIND];
- //extern short gLastFindPosition;
- //extern short gWhichFound;
-
- #endif
-